import tkinter as tk


if __name__ == '__main__':
    root = tk.Tk()
    root.withdraw()

    toplevel = tk.Toplevel(root)

    # create a toplevel menu
    menubar = tk.Menu(toplevel)
    menubar.add_command(label="Hello!")
    menubar.add_command(label="Quit!", command=root.quit)

    # display the menu
    toplevel.config(menu=menubar)

    root.mainloop()